<template>
    <div class="frame">
        <!-- <el-row>
            <el-select v-model="selectCur" style="width: 240px">
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
            </el-select>
        </el-row> -->
        <el-tabs v-model="selectCur" type="card" class="demo-tabs">
            <template v-for="item in options">
                <el-tab-pane :label="item.label" :name="item.value"></el-tab-pane>
            </template>
        </el-tabs>
        <component :is="option?.component" :key="'option?.value'"></component>
    </div>
</template>

<script setup lang="ts">
import { useComponent } from './useComponent'

const { selectCur, option, options } = useComponent();
</script>

<style scoped lang="scss">
.frame {
    height: 100%;
    display: flex;
    flex-direction: column;
}
</style>